package me.scotty86.DropChest.api;

import me.scotty86.DropChest.DropChestItem;
import org.bukkit.entity.Item;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class DropChestSuckEvent extends Event implements Cancellable {
	private DropChestItem chest;
	private Item item;
	private boolean cancel;
	private static final HandlerList handlers = new HandlerList();

	public DropChestSuckEvent(DropChestItem chest, Item item) {
		this.cancel = false;
		this.chest = chest;
		this.item = item;
	}

	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}

	public DropChestItem getChest() {
		return this.chest;
	}

	public Item getItem() {
		return this.item;
	}

	public boolean isCancelled() {
		return this.cancel;
	}

	public void setCancelled(boolean arg0) {
		this.cancel = arg0;
	}
}